package com.guigu.tms.commons.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 货物类型表
 * </p>
 *
 * @author zhh
 * @since 2022-09-23
 */
@TableName("pd_goods_type")
public class GoodsType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 货物类型名称
     */
    private String name;

    /**
     * 默认重量，单位：千克
     */
    private BigDecimal defaultWeight;

    /**
     * 默认体积，单位：方
     */
    private BigDecimal defaultVolume;

    /**
     * 说明
     */
    private String remark;

    /**
     * 状态 0：禁用 1：正常
     */
    private Integer status;

    /**
     * 货物类型编号
     */
    private String goodsTypeId;

    public List<TruckType> getTruckName() {
        return truckName;
    }

    public void setTruckName(List<TruckType> truckName) {
        this.truckName = truckName;
    }
    //防止数据库中没有此字段代码报错
    @TableField(exist = false)
    private List<TruckType> truckName;

    public List<Integer> getTruckTypeGoodsTypeId() {
        return truckTypeGoodsTypeId;
    }

    public void setTruckTypeGoodsTypeId(List<Integer> truckTypeGoodsTypeId) {
        this.truckTypeGoodsTypeId = truckTypeGoodsTypeId;
    }

    //防止数据库中没有此字段代码报错
    @TableField(exist = false)
    private List<Integer> truckTypeGoodsTypeId;




    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public BigDecimal getDefaultWeight() {
        return defaultWeight;
    }

    public void setDefaultWeight(BigDecimal defaultWeight) {
        this.defaultWeight = defaultWeight;
    }
    public BigDecimal getDefaultVolume() {
        return defaultVolume;
    }

    public void setDefaultVolume(BigDecimal defaultVolume) {
        this.defaultVolume = defaultVolume;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }



    public void setGoodsTypeId(String goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }
    public String getGoodsTypeId() {
        return goodsTypeId;
    }

    @Override
    public String toString() {
        return "GoodsType{" +
            "id=" + id +
            ", name=" + name +
            ", defaultWeight=" + defaultWeight +
            ", defaultVolume=" + defaultVolume +
            ", remark=" + remark +
            ", status=" + status +
            ", goodsTypeId=" + goodsTypeId +
        "}";
    }
}
